#include <stdio.h>
int main()
 {
    int a  = 0,i = 0;
    scanf("%d",&a);
    for(i = 0;i < a;i++)
    {
        printf("Happy new year!Good luck!\n");
    }
    return 0;
}
